/*
 * @Author: Yzq
 * @Date: 2021-04-01 14:21:53
 * @LastEditTime: 2021-04-05 15:38:03
 * @LastEditors: Yzq
 */
import React from 'react';
// import {connect} from 'react-redux';'
import {View, TouchableOpacity, Text, Image} from 'react-native';
import User from './Dao/user';
import I18n from './res';

class Index extends React.Component {
  constructor(props: any) {
    super(props);
    props.navigation.setOptions({
      headerTitle: '',
    });
  }
  state = {
    username: User?.username || '',
  };
  render() {
    return (
      <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
        <Text>{I18n.t('index.content', {name: this.state.username})}</Text>
      </View>
    );
  }
}

export default Index;
